﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Pro.Repository.Entites
{
    /// <summary>
    /// 商品分组
    /// </summary>
    [Table("pro_Groups"), Comment("商品分组")]
    [Serializable]
    public class GoodsGroups : EfEntity
    {
        /// <summary>
        /// 分组名称
        /// </summary>
        [Comment("分组名称"),MaxLength(100)]
        public string Name { get; set; }

        /// <summary>
        /// Banner地址
        /// </summary>
        [Comment("Banner地址"), MaxLength(2000)]
        public string? Banner { get; set; }

        /// <summary>
        /// 分组名称（维语)
        /// </summary>
        [Comment("分组名称（维语)"), MaxLength(100)]
        public string UighurName { get; set; }

        /// <summary>
        /// Banner地址（维语)
        /// </summary>
        [Comment("Banner地址（维语)"), MaxLength(2000)]
        public string? UighurBanner { get; set; }

        /// <summary>
        /// 分组类型（1：第三方；2：自营）
        /// </summary>
        [Comment("分组类型,1：第三方；2：自营; 3:通排")]
        public int Type { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Comment("排序")]
        public int Sort { get; set; }
    }
}
